package com.example.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
@JsonIgnoreProperties(ignoreUnknown = true) // 标注 忽略未知属性
@Schema(description = "微信小程序登录结果")
public class WebchatSessionDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description =  "sessionKey", required = false)
    private String sessionKey;

    @Schema(description =  "unionid", required = false)
    private String unionid;

    @Schema(description =  "errmsg", required = false)
    private String errmsg;

    @Schema(description =  "openid", required = false) // 场景值：标识store_id
    private String openid;
    private String errcode;

}
